package com.showgood.util 
{
	import com.showgood.vo.BaseVO;
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.Sprite;
	/**
	 * 地图上的元素, 包括VO和图元
	 * @author bianpeng
	 */
	public class MapElem extends Sprite {
		private var _vo:BaseVO;
		private var _view:DisplayObject;
		private var _shadow:DisplayObject;
		public function MapElem(vo:BaseVO, view:DisplayObject, shadow:DisplayObject = null) {
			_vo = vo;
			_view = view;
			this.addChild(_view);
			
			_shadow = shadow;
			if (_shadow) {
				this.addChild(_shadow);
			}
		}
		public function get vo():BaseVO { return _vo; }
		public function get view():DisplayObject { return _view; }
		public function get shadow():DisplayObject { return _shadow; }
		
		// 更新vo
		public function set vo(vo:BaseVO):void { _vo = vo; }
	}

}

